<script setup lang="ts">
import { cn } from '@aiflowy/utils';

import { ElCollapse, ElCollapseItem } from 'element-plus';

interface RunStepsProps {
  class?: string;
}

defineOptions({ name: 'RunSteps' });
const props = defineProps<RunStepsProps>();
</script>

<template>
  <div
    :class="
      cn('flex h-full flex-col gap-6 rounded-lg bg-white p-5', props.class)
    "
  >
    <h1 class="text-base font-medium text-[#1A1A1A]">执行步骤</h1>
    <ElCollapse expand-icon-position="left" accordion>
      <ElCollapseItem title="Consistency" name="1">
        <div>
          Consistent with real life: in line with the process and logic of real
          life, and comply with languages and habits that the users are used to;
        </div>
        <div>
          Consistent within interface: all elements should be consistent, such
          as: design style, icons and texts, position of elements, etc.
        </div>
      </ElCollapseItem>
      <ElCollapseItem title="Feedback" name="2">
        <div>
          Operation feedback: enable the users to clearly perceive their
          operations by style updates and interactive effects;
        </div>
        <div>
          Visual feedback: reflect current state by updating or rearranging
          elements of the page.
        </div>
      </ElCollapseItem>
      <ElCollapseItem title="Efficiency" name="3">
        <div>
          Simplify the process: keep operating process simple and intuitive;
        </div>
        <div>
          Definite and clear: enunciate your intentions clearly so that the
          users can quickly understand and make decisions;
        </div>
        <div>
          Easy to identify: the interface should be straightforward, which helps
          the users to identify and frees them from memorizing and recalling.
        </div>
      </ElCollapseItem>
    </ElCollapse>
  </div>
</template>
